package com.wfs.myapp.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResponseCodeEnum {
    SUCCESS(0, "操作成功"),
    INTERNAL_SERVER_ERROR(1001, "服务器内部错误"),
    ILLEGAL_IP(1002, "ip非法"),
    PARAM_MUST_NOT_NULL(1003, "参数[{0}]不能为空"),

    REMOTE_ERROR(1004, "请稍后重试"),

    ILLEGAL_TOKEN(4001, "非法token"),
    TOKEN_EXP(4002, "token过期"),
    USER_NOT_EXIST(4003, "用户不存在"),
    GROUP_NOT_EXIST(4004, "小组不存在"),
    GROUP_MEMBER_NOT_EXIST(4005, "小组成员不存在"),
    BOOK_NOT_EXIST(4006, "书籍不存在"),
    ORDER_NOT_EXIST(4007, "订单不存在"),
    AVATAR_NOT_EXIST(4008, "头像不存在"),
    FEEDBACK_NOT_EXIST(4009, "反馈不存在"),
    TALK_RECORD_NOT_EXIST(4010, "聊天图片记录不存在"),
    DISH_NOT_EXIST(4011, "菜品未找到"),


    USER_EXIT(5001, "用户已存在"),
    GROUP_MEMBER_EXIT(5002, "已在组内"),
    BOOK_BORROWED(5003, "书籍已借出"),
    ORDER_ERROR(5005, "书籍不可用"),
    BORROW_INVALID(5006, "无法借用自己的书籍"),
    ORDER_EXIST(5007, "已提交借阅"),


    ;

    private final int code;
    private final String msg;
}

